'use static';
zmvp.config(
    function ($stateProvider, $urlRouterProvider,$httpProvider, $locationProvider, $uibModalProvider,$animateProvider, tmhDynamicLocaleProvider, httpRequestInterceptorCacheBusterProvider) {
        $animateProvider.classNameFilter(/angular-animate/);
        //enable CSRF
        $httpProvider.defaults.xsrfCookieName = 'CSRF-TOKEN';
        $httpProvider.defaults.xsrfHeaderName = 'X-CSRF-TOKEN';

        //Cache everything except rest api requests
        httpRequestInterceptorCacheBusterProvider.setMatchlist([/.*api.*/, /.*protected.*/], true);

        $urlRouterProvider.otherwise('/');
        $stateProvider.state('site', {
            'abstract':true,
            views: {
                "header@":{
                    templateUrl:"scripts/components/header/header.html",
                    controller:"HeaderController"
                }
            }
        });
        $stateProvider.state(
            'notFound',
            {
                url:'/notFound',
                templateUrl:'404.html'
            })
    }
);
